<template>
  <div>
    <ul>
      <li class="item">
        <div class="label">项目名称</div>
        <div class="text ">{{ formInfo.project_name }}</div>
      </li>
      <li class="item">
        <div class="label">申请金额</div>
        <div class="text ">
          {{ formInfo.target_code }}
        </div>
      </li>
      <li class="item">
        <div class="label">拟定上线平台/院线/场地</div>
        <div class="text ">
          {{ formInfo.platform }}
        </div>
      </li>
      <li class="item">
        <div class="label">联合投资</div>
        <div class="text ">
          {{ formInfo.joint_venture }}
        </div>
      </li>
      <li class="item">
        <div class="label">联合出品方</div>
        <div class="text ">
          {{ formInfo.joint_investment }}
        </div>
      </li>
      <li class="item">
        <div class="label">上映周期</div>
        <div class="text ">
          {{ formInfo.release_cycle }}
        </div>
      </li>
      <li class="item">
        <div class="label">项目基本情况</div>
        <div class="text ">
          {{ formInfo.project_detail }}
        </div>
      </li>
      <!--      <li class="item">-->
      <!--        <div class="label">结算银行账号</div>-->
      <!--        <div class="text ">-->
      <!--          {{ formInfo.settlement_bank_card }}-->
      <!--        </div>-->
      <!--      </li>-->
      <li class="item">
        <div class="label">附件</div>
        <div class="text">
          <a
            v-if="formInfo.appendix"
            class="text-green"
            :href="$api.imgUrl + formInfo.appendix"
            download="附件"
            >下载附件</a
          >
        </div>
      </li>
      <li class="item">
        <div class="label">状态</div>
        <div class="text ">
          <a-tag v-if="formInfo.status === 1" color="orange">待审核</a-tag>
          <a-tag v-else-if="formInfo.status === 2" color="green">已通过</a-tag>
          <a-tag v-else color="red">已拒绝</a-tag>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "disabledForm",
  data() {
    return {
      formInfo: {}
    };
  },
  methods: {
    getDetail() {
      let obj = {
        id: this.$route.params.id
      };
      this.$ajax
        .post(this.$api.detailProject, obj)
        .then(res => {
          this.formInfo = res.data.projectInfo;
        })
        .catch(err => {
          this.$message.error(err);
        });
    }
  },
  created() {
    this.getDetail();
  }
};
</script>

<style scoped lang="less">
.item {
  line-height: 3.5rem;
  margin-bottom: 10px;
  font-size: 16px;
  .flex_content();
  .label {
    color: rgba(119, 119, 119, 1);
    width: 200px;
    text-align: right;
    margin-right: 0.5rem;
    &:after {
      content: ":";
      margin-right: 1rem;
    }
  }
  .text {
    .flex_one();
    padding: 0 5px;
    color: rgba(68, 68, 68, 1);
  }
}
</style>
